package com.itheima.myextends.homework.homework5;

/**
 * @Author 王加鑫
 * @Date 2021/5/6 20:47
 * @Version 1.0
 */
public class BaseTeacher extends Teacher {

    public BaseTeacher() {
    }

    public BaseTeacher(String name, int age) {
        super(name, age);
    }


    public void show(){
        System.out.println(getName() + "..." + getAge());
    }

    @Override
    public void teach() {
        System.out.println("基础班老师讲JavaSE");
    }

}
